/**
 * @file ArmorTrack.h
 * @brief 装甲板追踪类头文件
 * @date 2021-09-12
 *
 */
#pragma once

#include "Armor.h"
#include "Tracker.h"
#include <deque>

class ArmorTracker : public Tracker {
public:

    //更新装甲板时间序列
    void update(const Features_ptr &) override;

    //匹配时判断是否发生突变
    bool isSuddenChange(Features_ptr &to_be_matched, float &delta) override;

    //装甲板跟踪器构造函数
    explicit ArmorTracker(Features_ptr &);

    //默认析构
    ~ArmorTracker() = default;

private:
    float img_delta_dis;        // 两帧之间装甲板位置差值
    float x_change;               // 像素坐标系下装甲板的水平位变 (考虑方向)
};

